package com.example.cloud.controller.statistics;

import com.example.cloud.model.dto.Result;
import com.example.cloud.service.statistics.StatisticsReasonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by wt on 2018/10/25.
 */
@RestController
@RequestMapping("/statistics/reason")
public class StatisticsReasonController {

    @Autowired
    private StatisticsReasonService statisticsReasonService;

    @PostMapping("/search1")
    public Result search1(@RequestBody Map params) {
        return statisticsReasonService.doSearch1(params);
    }

    @PostMapping("/search2")
    public Result search2(@RequestBody Map params) {
        return statisticsReasonService.doSearch2(params);
    }
}
